package com.quanyan.place.entity;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbBizPlaceOrderDiscountItemExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbBizPlaceOrderDiscountItemExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidIsNull() {
            addCriterion("order_item_uuid is null");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidIsNotNull() {
            addCriterion("order_item_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidEqualTo(String value) {
            addCriterion("order_item_uuid =", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidNotEqualTo(String value) {
            addCriterion("order_item_uuid <>", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidGreaterThan(String value) {
            addCriterion("order_item_uuid >", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidGreaterThanOrEqualTo(String value) {
            addCriterion("order_item_uuid >=", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidLessThan(String value) {
            addCriterion("order_item_uuid <", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidLessThanOrEqualTo(String value) {
            addCriterion("order_item_uuid <=", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidLike(String value) {
            addCriterion("order_item_uuid like", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidNotLike(String value) {
            addCriterion("order_item_uuid not like", value, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidIn(List<String> values) {
            addCriterion("order_item_uuid in", values, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidNotIn(List<String> values) {
            addCriterion("order_item_uuid not in", values, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidBetween(String value1, String value2) {
            addCriterion("order_item_uuid between", value1, value2, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andOrderItemUuidNotBetween(String value1, String value2) {
            addCriterion("order_item_uuid not between", value1, value2, "orderItemUuid");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdIsNull() {
            addCriterion("place_order_id is null");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdIsNotNull() {
            addCriterion("place_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdEqualTo(String value) {
            addCriterion("place_order_id =", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotEqualTo(String value) {
            addCriterion("place_order_id <>", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdGreaterThan(String value) {
            addCriterion("place_order_id >", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("place_order_id >=", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdLessThan(String value) {
            addCriterion("place_order_id <", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdLessThanOrEqualTo(String value) {
            addCriterion("place_order_id <=", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdLike(String value) {
            addCriterion("place_order_id like", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotLike(String value) {
            addCriterion("place_order_id not like", value, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdIn(List<String> values) {
            addCriterion("place_order_id in", values, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotIn(List<String> values) {
            addCriterion("place_order_id not in", values, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdBetween(String value1, String value2) {
            addCriterion("place_order_id between", value1, value2, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andPlaceOrderIdNotBetween(String value1, String value2) {
            addCriterion("place_order_id not between", value1, value2, "placeOrderId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDiscountEggIsNull() {
            addCriterion("discount_egg is null");
            return (Criteria) this;
        }

        public Criteria andDiscountEggIsNotNull() {
            addCriterion("discount_egg is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEggEqualTo(BigDecimal value) {
            addCriterion("discount_egg =", value, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggNotEqualTo(BigDecimal value) {
            addCriterion("discount_egg <>", value, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggGreaterThan(BigDecimal value) {
            addCriterion("discount_egg >", value, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_egg >=", value, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggLessThan(BigDecimal value) {
            addCriterion("discount_egg <", value, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_egg <=", value, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggIn(List<BigDecimal> values) {
            addCriterion("discount_egg in", values, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggNotIn(List<BigDecimal> values) {
            addCriterion("discount_egg not in", values, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_egg between", value1, value2, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountEggNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_egg not between", value1, value2, "discountEgg");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponIsNull() {
            addCriterion("discount_coupon is null");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponIsNotNull() {
            addCriterion("discount_coupon is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponEqualTo(BigDecimal value) {
            addCriterion("discount_coupon =", value, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponNotEqualTo(BigDecimal value) {
            addCriterion("discount_coupon <>", value, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponGreaterThan(BigDecimal value) {
            addCriterion("discount_coupon >", value, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_coupon >=", value, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponLessThan(BigDecimal value) {
            addCriterion("discount_coupon <", value, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_coupon <=", value, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponIn(List<BigDecimal> values) {
            addCriterion("discount_coupon in", values, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponNotIn(List<BigDecimal> values) {
            addCriterion("discount_coupon not in", values, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_coupon between", value1, value2, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountCouponNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_coupon not between", value1, value2, "discountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponIsNull() {
            addCriterion("discount_discount_coupon is null");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponIsNotNull() {
            addCriterion("discount_discount_coupon is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponEqualTo(BigDecimal value) {
            addCriterion("discount_discount_coupon =", value, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponNotEqualTo(BigDecimal value) {
            addCriterion("discount_discount_coupon <>", value, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponGreaterThan(BigDecimal value) {
            addCriterion("discount_discount_coupon >", value, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_discount_coupon >=", value, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponLessThan(BigDecimal value) {
            addCriterion("discount_discount_coupon <", value, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_discount_coupon <=", value, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponIn(List<BigDecimal> values) {
            addCriterion("discount_discount_coupon in", values, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponNotIn(List<BigDecimal> values) {
            addCriterion("discount_discount_coupon not in", values, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_discount_coupon between", value1, value2, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountCouponNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_discount_coupon not between", value1, value2, "discountDiscountCoupon");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberIsNull() {
            addCriterion("discount_member is null");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberIsNotNull() {
            addCriterion("discount_member is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberEqualTo(BigDecimal value) {
            addCriterion("discount_member =", value, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberNotEqualTo(BigDecimal value) {
            addCriterion("discount_member <>", value, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberGreaterThan(BigDecimal value) {
            addCriterion("discount_member >", value, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_member >=", value, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberLessThan(BigDecimal value) {
            addCriterion("discount_member <", value, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_member <=", value, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberIn(List<BigDecimal> values) {
            addCriterion("discount_member in", values, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberNotIn(List<BigDecimal> values) {
            addCriterion("discount_member not in", values, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_member between", value1, value2, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountMemberNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_member not between", value1, value2, "discountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberIsNull() {
            addCriterion("discount_discount_member is null");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberIsNotNull() {
            addCriterion("discount_discount_member is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberEqualTo(BigDecimal value) {
            addCriterion("discount_discount_member =", value, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberNotEqualTo(BigDecimal value) {
            addCriterion("discount_discount_member <>", value, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberGreaterThan(BigDecimal value) {
            addCriterion("discount_discount_member >", value, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_discount_member >=", value, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberLessThan(BigDecimal value) {
            addCriterion("discount_discount_member <", value, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_discount_member <=", value, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberIn(List<BigDecimal> values) {
            addCriterion("discount_discount_member in", values, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberNotIn(List<BigDecimal> values) {
            addCriterion("discount_discount_member not in", values, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_discount_member between", value1, value2, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountDiscountMemberNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_discount_member not between", value1, value2, "discountDiscountMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberIsNull() {
            addCriterion("discount_number_member is null");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberIsNotNull() {
            addCriterion("discount_number_member is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberEqualTo(BigDecimal value) {
            addCriterion("discount_number_member =", value, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberNotEqualTo(BigDecimal value) {
            addCriterion("discount_number_member <>", value, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberGreaterThan(BigDecimal value) {
            addCriterion("discount_number_member >", value, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_number_member >=", value, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberLessThan(BigDecimal value) {
            addCriterion("discount_number_member <", value, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_number_member <=", value, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberIn(List<BigDecimal> values) {
            addCriterion("discount_number_member in", values, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberNotIn(List<BigDecimal> values) {
            addCriterion("discount_number_member not in", values, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_number_member between", value1, value2, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountNumberMemberNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_number_member not between", value1, value2, "discountNumberMember");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustIsNull() {
            addCriterion("discount_adjust is null");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustIsNotNull() {
            addCriterion("discount_adjust is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustEqualTo(BigDecimal value) {
            addCriterion("discount_adjust =", value, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustNotEqualTo(BigDecimal value) {
            addCriterion("discount_adjust <>", value, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustGreaterThan(BigDecimal value) {
            addCriterion("discount_adjust >", value, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_adjust >=", value, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustLessThan(BigDecimal value) {
            addCriterion("discount_adjust <", value, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustLessThanOrEqualTo(BigDecimal value) {
            addCriterion("discount_adjust <=", value, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustIn(List<BigDecimal> values) {
            addCriterion("discount_adjust in", values, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustNotIn(List<BigDecimal> values) {
            addCriterion("discount_adjust not in", values, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_adjust between", value1, value2, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andDiscountAdjustNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("discount_adjust not between", value1, value2, "discountAdjust");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoIsNull() {
            addCriterion("member_card_no is null");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoIsNotNull() {
            addCriterion("member_card_no is not null");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoEqualTo(String value) {
            addCriterion("member_card_no =", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoNotEqualTo(String value) {
            addCriterion("member_card_no <>", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoGreaterThan(String value) {
            addCriterion("member_card_no >", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoGreaterThanOrEqualTo(String value) {
            addCriterion("member_card_no >=", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoLessThan(String value) {
            addCriterion("member_card_no <", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoLessThanOrEqualTo(String value) {
            addCriterion("member_card_no <=", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoLike(String value) {
            addCriterion("member_card_no like", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoNotLike(String value) {
            addCriterion("member_card_no not like", value, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoIn(List<String> values) {
            addCriterion("member_card_no in", values, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoNotIn(List<String> values) {
            addCriterion("member_card_no not in", values, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoBetween(String value1, String value2) {
            addCriterion("member_card_no between", value1, value2, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andMemberCardNoNotBetween(String value1, String value2) {
            addCriterion("member_card_no not between", value1, value2, "memberCardNo");
            return (Criteria) this;
        }

        public Criteria andEggCountIsNull() {
            addCriterion("egg_count is null");
            return (Criteria) this;
        }

        public Criteria andEggCountIsNotNull() {
            addCriterion("egg_count is not null");
            return (Criteria) this;
        }

        public Criteria andEggCountEqualTo(Integer value) {
            addCriterion("egg_count =", value, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountNotEqualTo(Integer value) {
            addCriterion("egg_count <>", value, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountGreaterThan(Integer value) {
            addCriterion("egg_count >", value, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("egg_count >=", value, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountLessThan(Integer value) {
            addCriterion("egg_count <", value, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountLessThanOrEqualTo(Integer value) {
            addCriterion("egg_count <=", value, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountIn(List<Integer> values) {
            addCriterion("egg_count in", values, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountNotIn(List<Integer> values) {
            addCriterion("egg_count not in", values, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountBetween(Integer value1, Integer value2) {
            addCriterion("egg_count between", value1, value2, "eggCount");
            return (Criteria) this;
        }

        public Criteria andEggCountNotBetween(Integer value1, Integer value2) {
            addCriterion("egg_count not between", value1, value2, "eggCount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountIsNull() {
            addCriterion("subject_amount is null");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountIsNotNull() {
            addCriterion("subject_amount is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountEqualTo(BigDecimal value) {
            addCriterion("subject_amount =", value, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountNotEqualTo(BigDecimal value) {
            addCriterion("subject_amount <>", value, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountGreaterThan(BigDecimal value) {
            addCriterion("subject_amount >", value, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("subject_amount >=", value, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountLessThan(BigDecimal value) {
            addCriterion("subject_amount <", value, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("subject_amount <=", value, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountIn(List<BigDecimal> values) {
            addCriterion("subject_amount in", values, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountNotIn(List<BigDecimal> values) {
            addCriterion("subject_amount not in", values, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("subject_amount between", value1, value2, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("subject_amount not between", value1, value2, "subjectAmount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountIsNull() {
            addCriterion("subject_discount is null");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountIsNotNull() {
            addCriterion("subject_discount is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountEqualTo(Integer value) {
            addCriterion("subject_discount =", value, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountNotEqualTo(Integer value) {
            addCriterion("subject_discount <>", value, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountGreaterThan(Integer value) {
            addCriterion("subject_discount >", value, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountGreaterThanOrEqualTo(Integer value) {
            addCriterion("subject_discount >=", value, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountLessThan(Integer value) {
            addCriterion("subject_discount <", value, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountLessThanOrEqualTo(Integer value) {
            addCriterion("subject_discount <=", value, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountIn(List<Integer> values) {
            addCriterion("subject_discount in", values, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountNotIn(List<Integer> values) {
            addCriterion("subject_discount not in", values, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountBetween(Integer value1, Integer value2) {
            addCriterion("subject_discount between", value1, value2, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectDiscountNotBetween(Integer value1, Integer value2) {
            addCriterion("subject_discount not between", value1, value2, "subjectDiscount");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeIsNull() {
            addCriterion("subject_code is null");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeIsNotNull() {
            addCriterion("subject_code is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeEqualTo(String value) {
            addCriterion("subject_code =", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeNotEqualTo(String value) {
            addCriterion("subject_code <>", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeGreaterThan(String value) {
            addCriterion("subject_code >", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeGreaterThanOrEqualTo(String value) {
            addCriterion("subject_code >=", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeLessThan(String value) {
            addCriterion("subject_code <", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeLessThanOrEqualTo(String value) {
            addCriterion("subject_code <=", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeLike(String value) {
            addCriterion("subject_code like", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeNotLike(String value) {
            addCriterion("subject_code not like", value, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeIn(List<String> values) {
            addCriterion("subject_code in", values, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeNotIn(List<String> values) {
            addCriterion("subject_code not in", values, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeBetween(String value1, String value2) {
            addCriterion("subject_code between", value1, value2, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andSubjectCodeNotBetween(String value1, String value2) {
            addCriterion("subject_code not between", value1, value2, "subjectCode");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}